package com.kfm.base.loop;

public class Demo03 {

    public static void main(String[] args) {
        /*
        1.
         输出 1 ~ 100 所有的偶数
        2.
         求和
         */

        int sum = 0;
        for (int i = 0; i <= 100; i += 2){
            sum += i;
        }

        System.out.println(sum);
    }
}
